package com.alisls.shequtao.service.goods.dao;

import com.alisls.shequtao.service.goods.entity.BrandDO;
import com.alisls.shequtao.service.goods.entity.CategoryBrandDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * 品牌DAO
 *
 * @author Ke Wang
 */
public interface BrandDAO extends BaseMapper<BrandDO> {

    List<BrandDO> getBrandsByCategoryId(Long categoryId);

    /**
     * 保存品牌，商品分类中间表
     */
    void saveCategoryAndBrand(CategoryBrandDO categoryBrandDO);

}
